<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>酒店预订-<?php echo $cfg_webname;?></TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<LINK rel=stylesheet type=text/css href="/img/188_order.css">
<LINK rel=stylesheet type=text/css href="/img/css.css">
<script language="javascript" src="/img/js/all.js"></script>
<script language="javascript" src="/img/js/Calendarjd.js"></script>

<SCRIPT language=javascript>
//计算总价

function c(r,j,k)
{  

var patrn=/^[0-9]{1,10}$/; 
if (!patrn.exec(r))
{
var KidNum='KidNum'+k;
$(KidNum).value=1;
alert("必须输入大于等于0的整数");
} //判断是否为数字


} 

function verify(){

	//联系人姓名必须填写
	if( $("contact_name").value=="" ){
		alert("请您输入订单联系人姓名");
		$("contact_name").focus();
		return false;
	}
	
	//联系电话校验
	v_mobile = $("contact_mobile");
	v_phone = $("contact_phone");
	if(v_mobile.value=="" && v_phone.value==""){
		alert("联系电话两项必填一项，请您重新输入。");
		v_mobile.focus();
		return false;   
	}
	
	if(v_mobile.value!=""){
		if(!egrMobileCheck(v_mobile.value)){
			alert("您的手机号码输入错误，请您重新输入。");
			v_mobile.focus();
			return false;   
		}
	}
	
	//邮件校验
	v_email = $("contact_email");
	if(v_email.value!=""){
		if(!checkMail(v_email.value)){
			alert("邮件格式错误，请您重新输入。");
			v_email.focus();
			return false;
		} 
	}  
	




var totalPrice=0;
<?php
for($ia=0;$ia<$countfx;$ia++)
{
echo "var v_Kid".$ia." = $('v_Kid{$ia}');\r\n";
echo "var KidNum".$ia." = $('KidNum{$ia}');\r\n";
?>
if(KidNum<?php echo $ia ?>.value>0) 
{
totalPrice=parseInt(totalPrice)+parseInt(KidNum<?php echo $ia ?>.value)*parseInt(v_Kid<?php echo $ia ?>.value);
}
<?php
}
?>


$("totalPrice").value=totalPrice;
if(totalPrice==0)
{
alert("至少要预订一间房间");
return false;
}



	return true;
}

function del(){
	_showDivBoxObj.hideDiv();
	return;
}


</SCRIPT>




<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px;
	font-style: italic;
	font-weight: bold;
}
.opp{text-decoration:line-through; font-weight:bold; }
em{ font-size:12px;}
-->
</style>
</HEAD>
<BODY leftMargin=0 topMargin=0>
<DIV id=content_s>
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_feedback.php");
	  DedeXHTTP = null;
}
function Check_head_Login(){
	  var taget_obj = document.getElementById('_Check_head_Login');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_head.php");
	  DedeXHTTP = null;
}
function CheckLogin_index(){
	  var taget_obj = document.getElementById('_login_index');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_index.php");
	  DedeXHTTP = null;
}
</script>
<?php
   pasterTempletDiy("default/head_index.htm");
?>
<form id=form1 onSubmit="return verify()" method="post" name=form1 
action="/order/188_order_hotel_1.php">
<DIV id=content style="margin:0px auto">
<DIV class=c_border>
<DIV class=top_lc>
<DIV class=top_lc_div>
<DIV class=top_lc_div_li>1.选择中意房型</DIV>
<DIV class=top_lc_div_ge></DIV>
<DIV class=top_lc_div_stop>2.填写订单信息</DIV>
<DIV class=top_lc_div_ge></DIV>

<DIV class=top_lc_div_li>4.提交完成订单</DIV></DIV></DIV>
<DIV class=c_text>
<DIV class=c_title>
<H3>酒店信息</H3></DIV>
<DIV class=c_input>
<UL>
  <DIV class=c_input_title>


  <DIV>酒店名称：<STRONG><input type="text" name="title" value="<?php echo $row['title'];?>" style="width:200px; border:0px; text-align:left; " readonly="readonly" /> (酒店编号:<input type="text" name="id" value="<?php echo $row['aid'];?>" style="width:50px; border:0px; text-align:center; color:#F00; font-weight:bold; font-size:20px;" readonly="readonly" />)</STRONG><BR>
  酒店地址：<?php echo $row['jddz'];?><BR>周边环境：<?php echo $row['zhwj'];?> <BR>酒店星级：<?php echo jdxj($row['aid']);?> 
</DIV></DIV></UL></DIV>


<DIV class=c_title>
<H3>预定房型信息</H3></DIV>
<DIV class=c_input>
<UL>
  <DIV class=c_input_explain style="color:#F00"><IMG src="/img/order_bt.gif"> 
  请确定您预定的房型信息 </DIV>
  <table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr id="tl_ts">
        <td width="120" height="35" colspan="2">   房型</td>
        <td width="90">早餐</td>
        <td width="90">床型</td>
        <td width="90">宽带</td>
        <td width="100">门市价</td>
        <td width="100" >预定价</td>
		<td width="100" >输入预订间数</td>
      </tr>
      
      
  <?php 
$pp=0;
  foreach($okfx as $va)
  {
  $va=explode('|',$va);
  
   ?>
        <tr id="vl_t"  onMouseMove="javascript:this.bgColor='#e1f3ff';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
        <td width="120" valign="top" colspan="2"><input type="text" value="<?php echo $va[1];?>" name="fxa<?php echo $va[7];?>" id="fxa<?php echo $va[7];?>" style="width:110px; text-align:left; border:0px; color:#FF0000" readonly=/>       </td>
        <td valign="top" ><?php echo $va[2];?></td>
        <td valign="top"><?php echo $va[3];?></td>
        <td valign="top"><?php echo $va[4];?></td>
        <td valign="top"><em>¥ <font class="opp"><?php echo $va[5];?></font></em></td>
        <td  valign="top"><em>¥<input type="text" value="<?php echo $va[6];?>" name="v_Kid<?php echo $pp;?>" id="v_Kid<?php echo $pp;?>" style="width:30px; border:0px; text-align:center; color:#F00; font-weight:bold; font-size:12px;" readonly="readonly"/></em></td>
		<td  valign="top"><em> <input type="text" value="1" name="KidNum<?php echo $pp;?>" id="KidNum<?php echo $pp;?>" style="width:45px; text-align:center;" onKeyUp="c(this.value,<?php echo $va[6];?>,<?php echo $va[7];?>);" oninput="c(this.value,<?php echo $va[6];?>,<?php echo $va[7];?>);"/></em></td>
        <?php 
      $po=$po+$va[6];
        ?>
      </tr>
	
     <input type="hidden" value="<?php echo $va[7];?>"  name="arc<?php echo $va[7];?>"/>

      <?php  
     $pp++;
      }
      ?>  
	       <input type="hidden" value="<?php echo $pp;?>"  name="allid"/>
	   <input type="hidden" value=""  name="totalPrice" id="totalPrice"/>
 <!-- 房型循环结束-->  
 <tr id="vl_t"  onMouseMove="javascript:this.bgColor='#e1f3ff';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
        <td width="120" valign="top" colspan="2">   </td>
        <td valign="top" >   </td>
        <td valign="top">   </td>
        <td valign="top">   </td>
        <td valign="top">   </td>
		<td valign="top">   </td>
        <td  valign="top"><font style=" font-size:10px;">直接输入数字，取消房型请直接输入零 </font></td>
      </tr> 
                </table>
</UL>
</DIV>


<DIV class=c_title>
<H3>联系人信息</H3></DIV>
<DIV class=c_input>
<UL>
  <DIV class=c_input_explain><IMG src="/img/order_bt.gif"> 
  请准确填写您的联系人信息，方便我们与您联系，下单成功，游客凭此处填写的信息查询订单。 </DIV>
  <li>预计到店日期 ：
							<input type="text" style="width:110px; height:18px; border:#aebcbb 1px solid;" class="pad3" name="txtComeDate" id="txtComeDate" value="<?php echo $date;?>" onClick="javascript:event.cancelBubble=true;showCalendar('txtComeDate',false,'txtComeDate','txtOutDate','txtOutDate','<?php echo $date;?>','2020-12-25','','','','text','');"  readonly="true" /><a href="javascript:void(0);" onClick="javascript:event.cancelBubble=true;showCalendar('txtComeDate',false,'txtComeDate','txtOutDate','txtOutDate','','','','','','text','');"><img src="/img/yud_img06.gif" /></a>


        预计离店日期 ：<input type="text" style="width:110px; height:18px; border:#aebcbb 1px solid;" class="pad3" name="txtOutDate" id="txtOutDate" value="<?php echo $datee;?>" readonly="true" /><a href="javascript:void(0);" ><img src="/img/yud_img06.gif" /></a>
</li>
  <LI>姓　名 ：<INPUT style="WIDTH: 180px" id=contact_name class=input_s maxLength=20 
  type=text name=contact_name value="<?php echo $myname;?>"> <SPAN>* 必填项，请填写真实姓名，方便我们与您联系</SPAN></LI>
  <LI>手机号 ：<INPUT style="WIDTH: 180px" id=contact_mobile class=input_s 
  maxLength=15 type=text name=contact_mobile value="<?php echo $mymb;?>"> 
  <SPAN>* 此处手机号码，固话至少选填一项</SPAN></LI>
  <LI>固　话 ：<INPUT style="WIDTH: 180px" id=contact_phone class=input_s 
  maxLength=20 type=text name=contact_phone value="<?php echo $mytel;?>"> </LI>
  <LI>E-mail ：<INPUT style="WIDTH: 178px" id=contact_email class=input_s 
  maxLength=64 type=text name=contact_email value="<?php echo $mymail;?>"> 
  <SPAN>   建议您填写，以便我们反馈订单处理进程。</SPAN> </LI></UL></DIV>

<DIV class=c_title>
<H3>订单备注</H3></DIV>
<DIV class=c_input>
<UL>
  <DIV class=c_input_title>
  <DIV class=c_input_explain><IMG src="/img/order_bt.gif"> 
  如果您有什么其他的要求信息可以在这里留言备注。（或者稍后和客服代表电话沟通）</DIV><textarea style="WIDTH: 600px; COLOR: #555; FONT-SIZE: 12px" id=order_comment rows=4 name=order_comment></textarea> 
  </DIV></UL></DIV></DIV>
<DIV class=c_next><INPUT id=button value=　提交预览我的订单　 type=submit name=button> 　　 
<A onClick="history.go(-1);return false;" 
href="#">返回上一页</A></DIV></DIV></DIV></form><!--Footer-->

<?php
   pasterTempletDiy("default/footer.htm");
?>



</DIV></DIV><!-- 总价-->

</BODY></HTML>
